#define  _CRT_SECURE_NO_WARNINGS

#include "vector.h"
#include "list.h"

int main()
{
	yjz::vector<int> v1 = { 1,2,3,4,5,6 };
	yjz::vector<int>::iterator it = v1.begin();
	while (it != v1.end())
	{
		cout << *it << " ";
		++it;
	}
	cout << endl;

	yjz::vector<int> v2 = { 1,2,3,4,5,6 };
	yjz::vector<int>::const_iterator cit = v2.cbegin();
	while (cit != v2.cend())
	{
		cout << *cit << " ";
		++cit;
	}
	cout << endl;

	yjz::vector<int> v3 = { 1,2,3,4,5,6 };
	yjz::vector<int>::reverse_iterator rit = v3.rbegin();
	while (rit != v3.rend())
	{
		cout << *rit << " ";
		++rit;
	}
	cout << endl;

	yjz::vector<int> v4(v1);
	yjz::vector<int>::const_reverse_iterator crit = v4.crbegin();
	while (crit != v4.crend())
	{
		cout << *crit << " ";
		++crit;
	}
	cout << endl;
	return 0;
}



